// 应用套餐订阅情况请求参数
export type AppPackageSubReqDto = {
  appId: string;
  startTime: string;
  endTime: string;
  isNeedSumSub: boolean;
};

// 获取某租户活跃用户数请求参数
export type ActiveUserByTenantReq = {
  tenantCode: string;
  stepType: number;
  startTime: string;
  endTime: string;
};

// 获取所有租户活跃用户数请求参数
export type ActiveUsersReq = {
  stepType: number;
  startTime: string;
  endTime: string;
};

// 应用套餐订阅 按时长区间分布 Map定义
export type AppPackageSubDistributionMap = {
  subTime: string;
  subNum: number;
};

// 应用套餐订阅情况响应参数
export interface AppPackageSubResp {
  totalSubscriptions: number;
  subTimeDistribution: AppPackageSubDistributionMap[];
}

// 用户活跃情况响应参数
export interface UserActiveResp {
  activeProportion: number[];
  activeUserNum: number[];
  inactiveUserNum: number[];
}

// 用户活跃度 Map定义
export type ActiveUserByTimeMap = {
  date: string;
  number: number;
};
